package vlms.service;

public class VLMSServiceProxy implements vlms.service.VLMSService {
  private String _endpoint = null;
  private vlms.service.VLMSService vLMSService = null;
  
  public VLMSServiceProxy() {
    _initVLMSServiceProxy();
  }
  
  public VLMSServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initVLMSServiceProxy();
  }
  
  private void _initVLMSServiceProxy() {
    try {
      vLMSService = (new vlms.service.VLMSServiceServiceLocator()).getVLMSService();
      if (vLMSService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)vLMSService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)vLMSService)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (vLMSService != null)
      ((javax.xml.rpc.Stub)vLMSService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public vlms.service.VLMSService getVLMSService() {
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService;
  }
  
  public java.lang.String deletePremiumCustomer(java.lang.String personId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.deletePremiumCustomer(personId);
  }
  
  public java.lang.String deleteSimpleCustomer(java.lang.String personId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.deleteSimpleCustomer(personId);
  }
  
  public java.lang.String createMovie(vlms.bean.Movie movie) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.createMovie(movie);
  }
  
  public java.lang.String deleteMovie(java.lang.String movieId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.deleteMovie(movieId);
  }
  
  public java.lang.String searchPersonByMemNumber(java.lang.String membershipNo) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.searchPersonByMemNumber(membershipNo);
  }
  
  public java.lang.String[] retrieveIssuedMoviesByMemNumber(java.lang.String membershipNo) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.retrieveIssuedMoviesByMemNumber(membershipNo);
  }
  
  public java.lang.String changeIssuedMovieStatus(vlms.bean.IssuedMovie issuedmovie) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.changeIssuedMovieStatus(issuedmovie);
  }
  
  public vlms.bean.PremiumCustomer[] listPremiumCustomer() throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.listPremiumCustomer();
  }
  
  public vlms.bean.SimpleCustomer[] listSimpleCustomer() throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.listSimpleCustomer();
  }
  
  public vlms.bean.Movie[] listAllMovies() throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.listAllMovies();
  }
  
  public vlms.bean.Person[] listAllPersons() throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.listAllPersons();
  }
  
  public java.lang.String updateMovie(vlms.bean.Movie movie) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.updateMovie(movie);
  }
  
  public java.lang.String[] searchPerson(vlms.bean.Person person) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.searchPerson(person);
  }
  
  public vlms.bean.Movie[] searchMovie(vlms.bean.Movie movie) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.searchMovie(movie);
  }
  
  public vlms.bean.SimpleCustomer retrieveSimpleCustomerByPersonId(java.lang.String personId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.retrieveSimpleCustomerByPersonId(personId);
  }
  
  public vlms.bean.PremiumCustomer retrievePremiumCustomerByPersonId(java.lang.String personId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.retrievePremiumCustomerByPersonId(personId);
  }
  
  public java.lang.String[] retrieveIssuedMoviesByPersonId(java.lang.String personId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.retrieveIssuedMoviesByPersonId(personId);
  }
  
  public vlms.bean.Movie retrieveMovieById(java.lang.String movieId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.retrieveMovieById(movieId);
  }
  
  public vlms.bean.Person retrievePersonByEmail(java.lang.String emailid) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.retrievePersonByEmail(emailid);
  }
  
  public java.lang.String[] retrievePersonsByMovieId(java.lang.String movieId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.retrievePersonsByMovieId(movieId);
  }
  
  public java.lang.String viewFine(java.lang.String personId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.viewFine(personId);
  }
  
  public java.lang.String createPremiumCustomer(vlms.bean.Account account, vlms.bean.Person person) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.createPremiumCustomer(account, person);
  }
  
  public java.lang.String createSimpleCustomer(vlms.bean.Account account, vlms.bean.Person person) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.createSimpleCustomer(account, person);
  }
  
  public vlms.bean.Account logIn(vlms.bean.Account account) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.logIn(account);
  }
  
  public vlms.bean.IssuedMovie[] retrieveIssuedMovieByPersonId(java.lang.String personId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.retrieveIssuedMovieByPersonId(personId);
  }
  
  public vlms.bean.IssuedMovie[] retrieveAllMoviesByPersonId(java.lang.String personId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.retrieveAllMoviesByPersonId(personId);
  }
  
  public vlms.bean.Person retrievePersonById(java.lang.String personId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.retrievePersonById(personId);
  }
  
  public java.lang.String updateMember(vlms.bean.Account account, vlms.bean.Person person) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.updateMember(account, person);
  }
  
  public vlms.bean.Movie[] retrieveMovies(vlms.bean.Movie movie) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.retrieveMovies(movie);
  }
  
  public java.lang.String checkoutMovie(java.lang.String personId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.checkoutMovie(personId);
  }
  
  public java.lang.String[] generateBill(java.lang.String personId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.generateBill(personId);
  }
  
  public wrapper.CartMovie[] viewCart(java.lang.String sPersonId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.viewCart(sPersonId);
  }
  
  public wrapper.CartMovie[] addMovieInCart(java.lang.String sMovieId, java.lang.String sPersonId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.addMovieInCart(sMovieId, sPersonId);
  }
  
  public java.lang.String deleteMovieFromCart(java.lang.String sCartId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.deleteMovieFromCart(sCartId);
  }
  
  public java.lang.String addBalanceToAccount(java.lang.String personId, java.lang.String amount) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.addBalanceToAccount(personId, amount);
  }
  
  public java.lang.String validateCart(java.lang.String personId) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.validateCart(personId);
  }
  
  public int getMaxPersonId() throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.getMaxPersonId();
  }
  
  public int getMaxMovieId() throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.getMaxMovieId();
  }
  
  public java.lang.String clearFine(vlms.bean.Person oPerson) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.clearFine(oPerson);
  }
  
  public java.lang.String updatePassword(vlms.bean.Account account) throws java.rmi.RemoteException{
    if (vLMSService == null)
      _initVLMSServiceProxy();
    return vLMSService.updatePassword(account);
  }
  
  
}